home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form OcxPassword
- BorderStyle = 3 'Fixed Dialog
- Caption = "Change Password"
- ClientHeight = 1935
- ClientLeft = 2100
- ClientTop = 5265
- ClientWidth = 4845
- Height = 2310
- Left = 2055
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1935
- ScaleWidth = 4845
- ShowInTaskbar = 0 'False
- Top = 4935
- Width = 4935
- Begin VB.CommandButton Command2
- Caption = "&Cancel"
- Height = 375
- Left = 2640
- TabIndex = 6
- Top = 1440
- Width = 1335
- End
- Begin VB.CommandButton Command1
- Caption = "&Proceed"
- Default = -1 'True
- Height = 375
- Left = 840
- TabIndex = 5
- Top = 1440
- Width = 1335
- End
- Begin VB.Frame Frame1
- Caption = "Passwords:"
- Height = 1215
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 4575
- Begin VB.TextBox szPass2
- Height = 285
- Left = 1560
- PasswordChar = "*"
- TabIndex = 4
- Top = 720
- Width = 2655
- End
- Begin VB.TextBox szPass1
- Height = 285
- Left = 1560
- PasswordChar = "*"
- TabIndex = 3
- Top = 360
- Width = 2655
- End
- Begin VB.Label Label2
- Caption = "Confim Password:"
- Height = 255
- Left = 240
- TabIndex = 2
- Top = 720
- Width = 1455
- End
- Begin VB.Label Label1
- Caption = "New Password:"
- Height = 255
- Left = 240
- TabIndex = 1
- Top = 360
- Width = 1215
- End
- End
- Attribute VB_Name = "OcxPassword"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- If szPass1.Text = szPass2.Text Then
- If szPass1.Text = "" Then
- MsgBox "You can't set current Password", 0, "Change Password"
- Else
- OcxMainForm.MSess1.ChangePassword = szPass1.Text
- If OcxMainForm.MSess1.ErrorNum = 0 Then
- MsgBox "Password Changed!!!", 64, "Mail eXtension"
- Unload Me
- Else
- If MsgBox("Unable to Set Password. TryAgain?", 68, "Change Password") <> 6 Then
- Unload Me
- End If
- End If
- End If
- Else
- If MsgBox("Incorrect Password. TryAgain?", 68, "Change Password") <> 6 Then
- Unload Me
- End If
- End If
- End Sub
- Private Sub Command2_Click()
- Unload Me
- End Sub
-